<?php
class ecTraceTemp extends ecBase{

  protected $createdAt;
  protected $updatedAt;
  protected $deletedAt;
  protected $state;

  public $arrayKeys = array('created_at' => 0, 'updated_at' => 0, 'deleted_at' => 0, 'state' => 0);

  public function setCreatedAt($value)
  {
    if(Validator::getValidator('datetime', $value))
      $this->createdAt = $value;
    else
    {
      array_push($this->arrayErrors, 'keys created_at is not valid');
      return false;
    }
  }

  public function setUpdatedAt($value)
  {
    if(Validator::getValidator('datetime', $value))
      $this->updatedAt = $value;
    else
    {
      array_push($this->arrayErrors, 'keys updated_at is not valid');
      return false;
    }
  }

  public function setDeletedAt($value)
  {
    if(Validator::getValidator('datetime', $value))
      $this->deletedAt = $value;
    else
    {
      array_push($this->arrayErrors, 'keys deleted_at is not valid');
      return false;
    }
  }

  public function setState($value)
  {
    if(Validator::getValidator('entier', $value))
      $this->state = $value;
    else
    {
      array_push($this->arrayErrors, 'keys state is not valid');
      return false;
    }
  }

  public function getCreatedAt()
  {
    return $this->createdAt;
  }

  public function getUpdatedAt()
  {
    return $this->updatedAt;
  }

  public function getDeletedAt()
  {
    return $this->deletedAt;
  }

  public function getState()
  {
    return $this->state;
  }


}
